package com.lam.dormitory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lam
 * @since 2019-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Dormitory对象", description = "")
public class Dormitory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "宿舍id")
    @TableId(value = "dor_id", type = IdType.AUTO)
    private Long dorId;

    @ApiModelProperty(value = "宿舍楼号")
    private Integer buildingNo;

    @ApiModelProperty(value = "宿舍号")
    private Integer dorNo;

    @ApiModelProperty(value = "宿舍状态：0已删除; 1未删除")
    @TableLogic
    private Integer status;
}
